package com.un.ebs.context.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/6/6 23:34
 */
@Component
public interface DbQueryMapper extends BaseMapper {

    @Select("${sql}")
    List<LinkedHashMap<String, Object>> execSql(String sql);

    @Select("${sql}")
    long execCount(String sql);

}
